#ifndef API_H
#define API_H

#include <QString>

#include <windows.h>
#include <setupapi.h>
#include <stdio.h>
#include <windef.h>

//static GUID GUID_DEVINTERFACE_USB_DEVICE =
//{0x36fc9e60L, 0xc465, 0x11cf, 0x80, 0x56, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00};

struct drivesData
{
    QString driveLetter;
    QString driveLabel;
    QString driveSerial;
    unsigned long driveFreeSize;
};

struct cleanDataStruct
{
    QString cleanPath;
    uint deletedItems;
    int cleanedSize;
};

typedef QList<drivesData> drivesDataList;

const QString htmlText = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"> "
                         "<html> "
                         "<head> "
                         "</head> "
                         "<body> ";

const QString tableText = "<P><TABLE style=\"BORDER-COLLAPSE: collapse\" border=0 cellSpacing=0 "
                          "borderColor=#000000 cellPadding=2 width=\"100%\"> "
                          "<TR> "
                          "<TD width=40>&nbsp;<IMG style=\"WIDTH: 45px; HEIGHT: 49px\" alt=\"\" src=\"settings/file.png\" width=49 height=51></TD> "
                          "<TD width=100> "
                          "<P><STRONG>Target path</STRONG> </P> "
                          "<P><STRONG>Device info</STRONG> </P></TD> "
                          "<TD> "
                          "<P>text1</P> "
                          "<P>text2</P></TD></TR> "
                          "</TABLE> "

                          "<TABLE style=\"BORDER-COLLAPSE: collapse\" border=0 cellSpacing=0  "
                          "borderColor=#000000 cellPadding=1 width=\"100%\"> "
                          "<TR> "
                          "<TD width=250> "
                          "<P>Free space before cleanup </P> "
                          "<P>Free space after cleanup </P> "
                          "<P>Space freed</P> "
                          "<P>Total files removed</P> "
                          "</TD> "
                          "<TD> "
                          "<P>fs1</P> "
                          "<P>fs2</P> "
                          "<P>fs3</P> "
                          "<P>fs4</P> "
                          "</TD></TR> "
                          "</TABLE></P>";

#endif // API_H
